<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
	<script type="text/javascript" src="/media/js/handy.js"></script>
	<title>CRUD API Tests</title>
</head>
<body>

	<h1>CRUD API Tests</h1>

	<h2>Delete event <code>id=1</code></h2>
	<form method="post" action="/api/events/event/1/delete/?key=1">
		<input type="submit" value="Submit" />
	</form>

	<h2>Rename event <code>id=2</code></h2>
	<form method="post" action="/api/events/event/2/?key=2">
		<div>
			<label for="id_title">Title:</label><input type="text" name="title" id="id_title" />
		</div>
		<div>
			<label for="id_slug">Slug:</label><input type="text" name="slug" id="id_slug" />
		</div>
		<input type="submit" value="Submit" />
	</form>

	<h2>Add new event</h2>
	<form method="post" action="/api/events/event/add/?key=1">
		<div>
			<label for="id_title">Title:</label><input type="text" name="title" id="id_title" />
		</div>
		<div>
			<label for="id_slug">Slug:</label><input type="text" name="slug" id="id_slug" />
		</div>
		<div>
			<label for="id_start">Start:</label><input type="text" name="start" id="id_start" />
		</div>
		<div>
			<label for="id_end">End:</label><input type="text" name="end" id="id_end" />
		</div>
		<div>
			<label for="id_description">Description:</label><input type="text" name="description" id="id_description" />
		</div>
		<input type="submit" value="Submit" />
	</form>

</body>
</html>